<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:m="http://metawidget.org/faces"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:s="http://jboss.com/products/seam/taglib">

    <h:panelGrid columns="1" columnClasses="cols,cols" width="400">
        <rich:panelMenu style="width:150px" itemLeftIcon="disc">
            <rich:panelMenuItem label="#{messages['page.main.menu.item.account']}"
                                action="#{userBean.setSelectedUser(utilBean.getCurrentUser())}" />
            <rich:panelMenuItem label="#{messages['page.main.menu.item.users']}"
                                action="users" rendered="#{s:hasRole('Admin')}" />
            <rich:panelMenuItem
                label="#{messages['page.main.menu.item.customers']}"
                action="customers"
                rendered="#{s:hasRole('Szef') or s:hasRole('Analityk')}" />
            <rich:panelMenuItem
                label="#{messages['page.main.menu.item.applications']}"
                rendered="#{s:hasRole('Szef') or s:hasRole('Analityk') or s:hasRole('Klient')}"
                action="applications" />
            <rich:panelMenuItem label="#{messages['page.main.menu.item.tasks']}"
                                action="tasks"
                                rendered="#{s:hasRole('Szef') or s:hasRole('Analityk')}" />
            <rich:panelMenuItem label="#{messages['page.main.menu.item.toCheck']}"
                                action="toCheck"
                                rendered="#{s:hasRole('Szef') or s:hasRole('Analityk')}"/>
            <rich:panelMenuItem label="#{messages['page.main.menu.item.toBik']}"
                                action="toBik" 
                                rendered="#{s:hasRole('Szef') or s:hasRole('Analityk')}"/>
            <rich:panelMenuItem
                label="#{messages['page.main.menu.item.toAnalisis']}"
                action="toAnalisis" 
                rendered="#{s:hasRole('Szef') or s:hasRole('Analityk')}"/>
            <rich:panelMenuItem
                label="#{messages['page.main.menu.item.decision']}" 
                action="decision" 
                rendered="#{s:hasRole('Szef')}"/>
            <rich:panelMenuItem
                label="#{messages['page.main.menu.item.history']}" 
                action="history" 
                rendered="#{s:hasRole('Szef')}"/>
        </rich:panelMenu>
    </h:panelGrid>

</html>